<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtLegend Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_legend.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_qwt_legend-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtLegend Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The legend widget.  
 <a href="class_qwt_legend.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__legend_8h_source.html">qwt_legend.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtLegend:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_legend__inherit__graph.png" border="0" usemap="#_qwt_legend_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_legend_inherit__map" id="_qwt_legend_inherit__map">
<area shape="rect" id="node2" href="class_qwt_abstract_legend.html" title="Abstract base class for legend widgets. " alt="" coords="5,80,144,107"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a0a294317170adf5c271c1ce243f66a87"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a0a294317170adf5c271c1ce243f66a87">updateLegend</a> (const QVariant &amp;, const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;)</td></tr>
<tr class="memdesc:a0a294317170adf5c271c1ce243f66a87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the entries for an item.  <a href="#a0a294317170adf5c271c1ce243f66a87">More...</a><br /></td></tr>
<tr class="separator:a0a294317170adf5c271c1ce243f66a87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_slots_class_qwt_abstract_legend"><td colspan="2" onclick="javascript:toggleInherit('pub_slots_class_qwt_abstract_legend')"><img src="closed.png" alt="-"/>&#160;Public Slots inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
<tr class="memitem:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">updateLegend</a> (const QVariant &amp;itemInfo, const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;data)=0</td></tr>
<tr class="memdesc:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the entries for a plot item.  <a href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">More...</a><br /></td></tr>
<tr class="separator:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a26619e20d875f1e8c666b982a897244b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a26619e20d875f1e8c666b982a897244b">clicked</a> (const QVariant &amp;<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, int index)</td></tr>
<tr class="separator:a26619e20d875f1e8c666b982a897244b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae54179a767337c154beaa826c57dda87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked</a> (const QVariant &amp;<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, bool on, int index)</td></tr>
<tr class="separator:ae54179a767337c154beaa826c57dda87"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adf5a64070a546eaac36fc9afac56b7fb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adf5a64070a546eaac36fc9afac56b7fb">QwtLegend</a> (QWidget *parent=NULL)</td></tr>
<tr class="separator:adf5a64070a546eaac36fc9afac56b7fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memItemLeft" align="right" valign="top"><a id="a2dd3bc628652909b74e7ddb5db021ea5"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2dd3bc628652909b74e7ddb5db021ea5">~QwtLegend</a> ()</td></tr>
<tr class="memdesc:a2dd3bc628652909b74e7ddb5db021ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2">setMaxColumns</a> (uint numColums)</td></tr>
<tr class="memdesc:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the maximum number of entries in a row.  <a href="#adc427eb1a6ee6a3c17f7c1b8867b48b2">More...</a><br /></td></tr>
<tr class="separator:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ad5c80393cb8ac93d98eaa7d1d77cf1f7">maxColumns</a> () const</td></tr>
<tr class="separator:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af977ff3e749f8281ee8ad4b926542b50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50">setDefaultItemMode</a> (<a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>)</td></tr>
<tr class="memdesc:af977ff3e749f8281ee8ad4b926542b50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default mode for legend labels.  <a href="#af977ff3e749f8281ee8ad4b926542b50">More...</a><br /></td></tr>
<tr class="separator:af977ff3e749f8281ee8ad4b926542b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode</a> () const</td></tr>
<tr class="separator:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa52edeceb553ae703516c984f34d7ab7"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget</a> ()</td></tr>
<tr class="separator:aa52edeceb553ae703516c984f34d7ab7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memItemLeft" align="right" valign="top">const QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a66934c7b4b45c0213fa4cf6fa9e53943">contentsWidget</a> () const</td></tr>
<tr class="separator:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget</a> (const QVariant &amp;) const</td></tr>
<tr class="separator:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af23aeb34e562218c32a8a4014534f930"><td class="memItemLeft" align="right" valign="top">QList&lt; QWidget * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af23aeb34e562218c32a8a4014534f930">legendWidgets</a> (const QVariant &amp;) const</td></tr>
<tr class="separator:af23aeb34e562218c32a8a4014534f930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memItemLeft" align="right" valign="top">QVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a> (const QWidget *) const</td></tr>
<tr class="separator:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade86e158b8254fe76d42e85f9808c827"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ade86e158b8254fe76d42e85f9808c827">eventFilter</a> (QObject *, QEvent *)</td></tr>
<tr class="separator:ade86e158b8254fe76d42e85f9808c827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memItemLeft" align="right" valign="top"><a id="ae8a77d6e9fce19066d9ff7a77bdb5eff"></a>
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae8a77d6e9fce19066d9ff7a77bdb5eff">sizeHint</a> () const</td></tr>
<tr class="memdesc:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a size hint. <br /></td></tr>
<tr class="separator:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aded2e6c182b4b7268a391a508041af42"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aded2e6c182b4b7268a391a508041af42">heightForWidth</a> (int width) const</td></tr>
<tr class="separator:aded2e6c182b4b7268a391a508041af42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memItemLeft" align="right" valign="top">QScrollBar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar</a> () const</td></tr>
<tr class="separator:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e567054b220ba850e4c1b7800a2ad82"><td class="memItemLeft" align="right" valign="top">QScrollBar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar</a> () const</td></tr>
<tr class="separator:a2e567054b220ba850e4c1b7800a2ad82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41c46ddb5b69ec23b76d3016a908535d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a41c46ddb5b69ec23b76d3016a908535d">renderLegend</a> (QPainter *, const QRectF &amp;, bool fillBackground) const</td></tr>
<tr class="separator:a41c46ddb5b69ec23b76d3016a908535d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a7d935dface0a2cfd770daffa0c3c12ab">renderItem</a> (QPainter *, const QWidget *, const QRectF &amp;, bool fillBackground) const</td></tr>
<tr class="separator:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aced18eb9dc01af9f89da7e52491a9ee1">isEmpty</a> () const</td></tr>
<tr class="separator:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af6479d6dd8ac45142ce0da5d8be29a2a">scrollExtent</a> (Qt::Orientation) const</td></tr>
<tr class="separator:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_qwt_abstract_legend"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_qwt_abstract_legend')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
<tr class="memitem:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a77092d06decd579fcde5c90875c3830b">QwtAbstractLegend</a> (QWidget *parent=NULL)</td></tr>
<tr class="separator:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top"><a id="a6d86d9c50679dea9fefafc457fc70814"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a6d86d9c50679dea9fefafc457fc70814">~QwtAbstractLegend</a> ()</td></tr>
<tr class="memdesc:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr class="memitem:a9e0e1b18a6d18b113802935bb6135921"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a9e0e1b18a6d18b113802935bb6135921">itemClicked</a> ()</td></tr>
<tr class="separator:a9e0e1b18a6d18b113802935bb6135921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19429ac46c36ca12531779099476ac8a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a19429ac46c36ca12531779099476ac8a">itemChecked</a> (bool)</td></tr>
<tr class="separator:a19429ac46c36ca12531779099476ac8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memItemLeft" align="right" valign="top">virtual QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29">createWidget</a> (const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;) const</td></tr>
<tr class="memdesc:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a widget to be inserted into the legend.  <a href="#a1c5e7654a2fb4d4cdc00c57c5de56e29">More...</a><br /></td></tr>
<tr class="separator:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96d3546878914d04df4770699deb3cd3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3">updateWidget</a> (QWidget *widget, const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;)</td></tr>
<tr class="memdesc:a96d3546878914d04df4770699deb3cd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the widget.  <a href="#a96d3546878914d04df4770699deb3cd3">More...</a><br /></td></tr>
<tr class="separator:a96d3546878914d04df4770699deb3cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The legend widget. </p>
<p>The <a class="el" href="class_qwt_legend.html" title="The legend widget. ">QwtLegend</a> widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a>, <a class="el" href="class_qwt_plot_item.html" title="Base class for items on the plot canvas. ">QwtPlotItem</a>, <a class="el" href="class_qwt_plot.html" title="A 2-D plotting widget. ">QwtPlot</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="adf5a64070a546eaac36fc9afac56b7fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf5a64070a546eaac36fc9afac56b7fb">&#9670;&nbsp;</a></span>QwtLegend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QwtLegend::QwtLegend </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae54179a767337c154beaa826c57dda87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae54179a767337c154beaa826c57dda87">&#9670;&nbsp;</a></span>checked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::checked </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&#160;</td>
          <td class="paramname"><em>itemInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>A signal which is emitted when the user has clicked on a legend label, which is in <a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7a250e05444c9927d83d3815d9f5593917" title="The legend item is checkable, like a checkable button. ">QwtLegendData::Checkable</a> mode</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">itemInfo</td><td>Info for the item of the selected legend label </td></tr>
    <tr><td class="paramname">index</td><td>Index of the legend label in the list of widgets that are associated with the plot item </td></tr>
    <tr><td class="paramname">on</td><td>True when the legend label is checked</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels. ">setDefaultItemMode()</a>, <a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend. ">QwtPlot::itemToInfo()</a> </dd></dl>

</div>
</div>
<a id="a26619e20d875f1e8c666b982a897244b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26619e20d875f1e8c666b982a897244b">&#9670;&nbsp;</a></span>clicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::clicked </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&#160;</td>
          <td class="paramname"><em>itemInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>A signal which is emitted when the user has clicked on a legend label, which is in <a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7a39077c66db9fe2faf4d85a6f9266583f" title="The legend item is clickable, like a push button. ">QwtLegendData::Clickable</a> mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">itemInfo</td><td>Info for the item item of the selected legend item </td></tr>
    <tr><td class="paramname">index</td><td>Index of the legend label in the list of widgets that are associated with the plot item</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels. ">setDefaultItemMode()</a>, <a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend. ">QwtPlot::itemToInfo()</a> </dd></dl>

</div>
</div>
<a id="aa52edeceb553ae703516c984f34d7ab7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa52edeceb553ae703516c984f34d7ab7">&#9670;&nbsp;</a></span>contentsWidget() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QWidget * QwtLegend::contentsWidget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
<dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>

</div>
</div>
<a id="a66934c7b4b45c0213fa4cf6fa9e53943"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66934c7b4b45c0213fa4cf6fa9e53943">&#9670;&nbsp;</a></span>contentsWidget() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QWidget * QwtLegend::contentsWidget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
<dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>

</div>
</div>
<a id="a1c5e7654a2fb4d4cdc00c57c5de56e29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c5e7654a2fb4d4cdc00c57c5de56e29">&#9670;&nbsp;</a></span>createWidget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QWidget * QwtLegend::createWidget </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;&#160;</td>
          <td class="paramname"><em>legendData</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a widget to be inserted into the legend. </p>
<p>The default implementation returns a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">legendData</td><td>Attributes of the legend entry </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Widget representing data on the legend</dd></dl>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3" title="Update the widget. ">updateWidget()</a> will called soon after <a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29" title="Create a widget to be inserted into the legend. ">createWidget()</a> with the same attributes. </dd></dl>

</div>
</div>
<a id="ab3104f1cf7a872384bdf5fb39ba46f99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3104f1cf7a872384bdf5fb39ba46f99">&#9670;&nbsp;</a></span>defaultItemMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a> QwtLegend::defaultItemMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Default item mode </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels. ">setDefaultItemMode()</a> </dd></dl>

</div>
</div>
<a id="ade86e158b8254fe76d42e85f9808c827"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade86e158b8254fe76d42e85f9808c827">&#9670;&nbsp;</a></span>eventFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtLegend::eventFilter </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QEvent *&#160;</td>
          <td class="paramname"><em>event</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the <a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>Object to be filtered </td></tr>
    <tr><td class="paramname">event</td><td>Event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Forwarded to QwtAbstractLegend::eventFilter() </dd></dl>

</div>
</div>
<a id="aded2e6c182b4b7268a391a508041af42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aded2e6c182b4b7268a391a508041af42">&#9670;&nbsp;</a></span>heightForWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int QwtLegend::heightForWidth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The preferred height, for a width. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>Width </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a35e2babbf9e2f0df29f07bdb9230b82d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35e2babbf9e2f0df29f07bdb9230b82d">&#9670;&nbsp;</a></span>horizontalScrollBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QScrollBar * QwtLegend::horizontalScrollBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Horizontal scrollbar </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar()</a> </dd></dl>

</div>
</div>
<a id="aced18eb9dc01af9f89da7e52491a9ee1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aced18eb9dc01af9f89da7e52491a9ee1">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtLegend::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when no item is inserted </dd></dl>

<p>Implements <a class="el" href="class_qwt_abstract_legend.html#a9904720ba92daf03d0e5d8559cc5cdfe">QwtAbstractLegend</a>.</p>

</div>
</div>
<a id="a19429ac46c36ca12531779099476ac8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19429ac46c36ca12531779099476ac8a">&#9670;&nbsp;</a></span>itemChecked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::itemChecked </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Called internally when the legend has been checked Emits a <a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked()</a> signal. </p>

</div>
</div>
<a id="a9e0e1b18a6d18b113802935bb6135921"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e0e1b18a6d18b113802935bb6135921">&#9670;&nbsp;</a></span>itemClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::itemClicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Called internally when the legend has been clicked on. Emits a <a class="el" href="class_qwt_legend.html#a26619e20d875f1e8c666b982a897244b">clicked()</a> signal. </p>

</div>
</div>
<a id="a2c881a53105fc1c4c600f7e4d075c7be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c881a53105fc1c4c600f7e4d075c7be">&#9670;&nbsp;</a></span>itemInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant QwtLegend::itemInfo </td>
          <td>(</td>
          <td class="paramtype">const QWidget *&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Find the item that is associated to a widget</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>Widget on the legend </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Associated item info </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget()</a> </dd></dl>

</div>
</div>
<a id="a5c71e0bf27a1732e7a4a2780b4835128"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c71e0bf27a1732e7a4a2780b4835128">&#9670;&nbsp;</a></span>legendWidget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QWidget * QwtLegend::legendWidget </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&#160;</td>
          <td class="paramname"><em>itemInfo</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>First widget in the list of widgets associated to an item </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend. ">QwtPlot::itemToInfo()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Almost all types of items have only one widget </dd></dl>

</div>
</div>
<a id="af23aeb34e562218c32a8a4014534f930"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af23aeb34e562218c32a8a4014534f930">&#9670;&nbsp;</a></span>legendWidgets()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QWidget * &gt; QwtLegend::legendWidgets </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&#160;</td>
          <td class="paramname"><em>itemInfo</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>List of widgets associated to a item </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget()</a>, <a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend. ">QwtPlot::itemToInfo()</a> </dd></dl>

</div>
</div>
<a id="ad5c80393cb8ac93d98eaa7d1d77cf1f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c80393cb8ac93d98eaa7d1d77cf1f7">&#9670;&nbsp;</a></span>maxColumns()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtLegend::maxColumns </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Maximum number of entries in a row </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2" title="Set the maximum number of entries in a row. ">setMaxColumns()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#a73e0cee4cf42ddf5b3f33947b1881143" title="Return the upper limit for the number of columns. ">QwtDynGridLayout::maxColumns()</a> </dd></dl>

</div>
</div>
<a id="a7d935dface0a2cfd770daffa0c3c12ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d935dface0a2cfd770daffa0c3c12ab">&#9670;&nbsp;</a></span>renderItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::renderItem </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillBackground</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Render a legend entry into a given rectangle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td>Painter </td></tr>
    <tr><td class="paramname">widget</td><td>Widget representing a legend entry </td></tr>
    <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
    <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>When widget is not derived from <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a> renderItem does nothing beside the background </dd></dl>

</div>
</div>
<a id="a41c46ddb5b69ec23b76d3016a908535d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41c46ddb5b69ec23b76d3016a908535d">&#9670;&nbsp;</a></span>renderLegend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::renderLegend </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillBackground</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Render the legend into a given rectangle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td>Painter </td></tr>
    <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
    <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a41c46ddb5b69ec23b76d3016a908535d">renderLegend()</a> is used by <a class="el" href="class_qwt_plot_renderer.html" title="Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...">QwtPlotRenderer</a> - not by <a class="el" href="class_qwt_legend.html" title="The legend widget. ">QwtLegend</a> itself </dd></dl>

<p>Implements <a class="el" href="class_qwt_abstract_legend.html#a2fe1ac5ac1448e4d86b7437505214d9c">QwtAbstractLegend</a>.</p>

</div>
</div>
<a id="af6479d6dd8ac45142ce0da5d8be29a2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6479d6dd8ac45142ce0da5d8be29a2a">&#9670;&nbsp;</a></span>scrollExtent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int QwtLegend::scrollExtent </td>
          <td>(</td>
          <td class="paramtype">Qt::Orientation&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Return the extent, that is needed for the scrollbars</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">orientation</td><td>Orientation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The width of the vertical scrollbar for Qt::Horizontal and v.v. </dd></dl>

<p>Reimplemented from <a class="el" href="class_qwt_abstract_legend.html#a619f3705f6f9be8c1f38df68d83a37ff">QwtAbstractLegend</a>.</p>

</div>
</div>
<a id="af977ff3e749f8281ee8ad4b926542b50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af977ff3e749f8281ee8ad4b926542b50">&#9670;&nbsp;</a></span>setDefaultItemMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::setDefaultItemMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the default mode for legend labels. </p>
<p>Legend labels will be constructed according to the attributes in a <a class="el" href="class_qwt_legend_data.html" title="Attributes of an entry on a legend. ">QwtLegendData</a> object. When it doesn't contain a value for the QwtLegendData::ModeRole the label will be initialized with the default mode of the legend.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>Default item mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>itemMode(), <a class="el" href="class_qwt_legend_data.html#a6d7b579487291f78d9cc26b59b53e32f">QwtLegendData::value()</a>, <a class="el" href="class_qwt_plot_item.html#a367ed5160b8475daf6b5b06558310f98" title="Return all information, that is needed to represent the item on the legend. ">QwtPlotItem::legendData()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Changing the mode doesn't have any effect on existing labels. </dd></dl>

</div>
</div>
<a id="adc427eb1a6ee6a3c17f7c1b8867b48b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc427eb1a6ee6a3c17f7c1b8867b48b2">&#9670;&nbsp;</a></span>setMaxColumns()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::setMaxColumns </td>
          <td>(</td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>numColums</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the maximum number of entries in a row. </p>
<p>F.e when the maximum is set to 1 all items are aligned vertically. 0 means unlimited</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">numColums</td><td>Maximum number of entries in a row</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#ad5c80393cb8ac93d98eaa7d1d77cf1f7">maxColumns()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#a910bc4bcdecfa2d3a98a9bd091933014">QwtDynGridLayout::setMaxColumns()</a> </dd></dl>

</div>
</div>
<a id="a0a294317170adf5c271c1ce243f66a87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a294317170adf5c271c1ce243f66a87">&#9670;&nbsp;</a></span>updateLegend</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::updateLegend </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&#160;</td>
          <td class="paramname"><em>itemInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>legendData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Update the entries for an item. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">itemInfo</td><td>Info for an item </td></tr>
    <tr><td class="paramname">legendData</td><td>List of legend entry attributes for the item </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a96d3546878914d04df4770699deb3cd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96d3546878914d04df4770699deb3cd3">&#9670;&nbsp;</a></span>updateWidget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegend::updateWidget </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;&#160;</td>
          <td class="paramname"><em>legendData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Update the widget. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>Usually a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a> </td></tr>
    <tr><td class="paramname">legendData</td><td>Attributes to be displayed</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29" title="Create a widget to be inserted into the legend. ">createWidget()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>When widget is no <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend. ">QwtLegendLabel</a> <a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3" title="Update the widget. ">updateWidget()</a> does nothing. </dd></dl>

</div>
</div>
<a id="a2e567054b220ba850e4c1b7800a2ad82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e567054b220ba850e4c1b7800a2ad82">&#9670;&nbsp;</a></span>verticalScrollBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QScrollBar * QwtLegend::verticalScrollBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Vertical scrollbar </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_legend.html">QwtLegend</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
